<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Process a PHP file importing function and class definitions, overwriting where appropriate</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.runkit-function-rename.html">runkit_function_rename</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.runkit-lint-file.html">runkit_lint_file</a></div>
 <div class="up"><a href="ref.runkit.html">runkit 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.runkit-import" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">runkit_import</h1>
  <p class="verinfo">(PECL runkit &gt;= 0.7.0)</p><p class="refpurpose"><span class="refname">runkit_import</span> &mdash; <span class="dc-title">
   Process a PHP file importing function and class definitions, overwriting where appropriate
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.runkit-import-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>runkit_import</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code><span class="initializer"> = RUNKIT_IMPORT_CLASS_METHODS</span></span>
  ] )</div>

  <p class="para rdfs-comment">
   Similar to <span class="function"><a href="function.include.html" class="function">include</a></span> however any code residing outside
   of a function or class is simply ignored.
   Additionally, depending on the value of <em><code class="parameter">flags</code></em>,
   any functions or classes which already exist in the currently running environment
   will be automatically overwritten by their new definitions.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.runkit-import-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">filename</code></em></dt>

     <dd>

      <p class="para">
       Filename to import function and class definitions from
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">flags</code></em></dt>

     <dd>

      <p class="para">
       Bitwise OR of the <strong><code>RUNKIT_IMPORT_*</code></strong> family of constants.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.runkit-import-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>TRUE</code></strong>， 或者在失败时返回 <strong><code>FALSE</code></strong>。
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.runkit-function-rename.html">runkit_function_rename</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.runkit-lint-file.html">runkit_lint_file</a></div>
 <div class="up"><a href="ref.runkit.html">runkit 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
